import { ApiHideProperty, ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CartUpdateVo {

  @ApiProperty({ description: '商品id' })
  @IsNotEmpty({ message: "商品id不能为空" })
  productId: number

  @ApiProperty({ description: '商品数量' })
  @IsNotEmpty({ message: "商品数量不能为空" })
  num: number

  // 用户id
  @ApiHideProperty()
  userId: number
}